libxl: IDL: remove libxl_C_type_of
authorIan Campbell <ian.campbell@citrix.com>
Thu, 14 Jul 2011 12:22:36 +0000 (13:22 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 14 Jul 2011 12:22:36 +0000 (13:22 +0100)
It's not really adding much...

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/gentypes.py

index 4d108f842133afb2ea189af1b1d5afd7284be81b..d6db145f1838e9cae5e2e598c8a1c61cccfb0930 100644 (file)
@@ -17,10 +17,7 @@ def format_comment(level, comment):
     s += "%s */" % indent
     s += "\n"
     return s
-
-def libxl_C_type_of(ty):
-    return ty.typename
-
+    
 def libxl_C_instance_of(ty, instancename):
     if isinstance(ty, libxltypes.Aggregate) and ty.typename is None:
         if instancename is None:
@@ -28,7 +25,7 @@ def libxl_C_instance_of(ty, instancename):
         else:
             return libxl_C_type_define(ty) + " " + instancename
     else:
-        return libxl_C_type_of(ty) + " " + instancename
+        return ty.typename + " " + instancename
 
 def libxl_C_type_define(ty, indent = ""):
     s = ""